#include "jni.h"
#include "rtmp_output_picture.h"
#include "util.h"

JNIEXPORT jint JNICALL
Java_com_linciping_rtmputil_RtmpOutputPicture_connectionRtmp(JNIEnv *env, jclass clazz,
                                                             jstring rtmp_url,  jstring picture_path,jint width,jint height);

JNIEXPORT jint JNICALL
Java_com_linciping_rtmputil_RtmpOutputPicture_closeRtmp(JNIEnv *env, jclass clazz,
                                                        jstring rtmp_url);

JNIEXPORT jint JNICALL
Java_com_linciping_rtmputil_RtmpOutputPicture_outputRtmpFramePicture(JNIEnv *env, jclass clazz,
                                                                     jstring rtmp_url, jstring picture_path,
                                                                     jint width, jint height);

JNIEXPORT jint JNICALL
Java_com_linciping_rtmputil_RtmpOutputPicture_outputVideoAndPicture(JNIEnv *env, jclass clazz,
                                                                     jstring rtmp_url, jstring output_dir_path,jstring video_name,
                                                                     jint video_time,jint picture_interval,
                                                                     jint width, jint height);

JNIEXPORT jint JNICALL
Java_com_linciping_rtmputil_RtmpOutputPicture_outputVideo(JNIEnv *env, jclass clazz,
        jstring rtmp_url, jstring output_video_path,jint video_time,jint width, jint height);